package com.syt.test

import com.syt.test.entity.Shape

fun main() {

    val hello = Polygon()
    hello.handName("1234")

}

open class Rectangle : Shape {
    override val vertextCount = 4

    override fun handName(name: String) {
        println("hello Rectangle")
    }

}

class Polygon : Rectangle() {
    override val vertextCount = 10

    override fun handName(name: String) {
        super.handName(name)
        println("Polygon")
    }
}

